#include "UtilityPCH.h"
#include "UT_Intersection.h"
#include "UT_ScenePrimitiveBase.h"

using namespace Utility;

//----------------------------------------------------------------------------
UT_BSDF* UT_Intersection::GetBSDF(const UT_RayDifferential& rkRay, Memory::MM_MemoryArena& rkMemoryArena) const
{
	m_kDifferentialGeometry.ComputeDifferentials(rkRay);
	UT_BSDF* pkBSDF = m_pkScenePrimitiveBase->GetBSDF(m_kDifferentialGeometry, m_kObjectToWorld, rkMemoryArena);
	return pkBSDF;
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
